<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use Faker\Generator as Faker;
use App\Staffer;

$factory->define(Staffer::class, function (Faker $faker) {
    $created_at = my_random_created_at();
    $staffer_phone = my_random_phone();
    return [
        'staffer_num' => my_random_staffer_num($created_at),
        'staffer_name' => my_random_user_name(),
        'staffer_password' => md5($staffer_phone . '19930611'),
        'staffer_phone' => $staffer_phone,
        'staffer_home_phone' => my_random_phone(),
        'staffer_birthday' => my_random_birthday(),
        'staffer_sex' => my_random_sex(),
        'staffer_duty_time' => $created_at,
        'staffer_duty_status' => 1,
        'staffer_departure_type' => 0,
        'staffer_departure_reason' => '',
        'created_at' => $created_at,
    ];
});
